<?php
/**
 * information sidebox - displays list of general info links, as defined in this file
 *
 * @package templateSystem
 * @copyright Copyright 2003-2006 Zen Cart Development Team
 * @copyright Portions Copyright 2003 osCommerce
 * @license http://www.zen-cart.com/license/2_0.txt GNU Public License V2.0
 * @version $Id: information.php 4132 2006-08-14 00:36:39Z drbyte $
 */
  unset($information);
  $information[] = '<a href="' . zen_href_link(FILENAME_CONTACT_US) . '" rel="nofollow">' . BOX_INFORMATION_CONTACT . '</a>';

// Forum (phpBB) link:
  if ( (isset($phpBB->phpBB['db_installed_config']) && $phpBB->phpBB['db_installed_config']) && (isset($phpBB->phpBB['files_installed']) && $phpBB->phpBB['files_installed'])  && (PHPBB_LINKS_ENABLED=='true')) {
    $information[] = '<a href="' . zen_href_link($phpBB->phpBB['phpbb_url'] . FILENAME_BB_INDEX, '', 'NONSSL', false, '', true) . '" target="_blank">' . BOX_BBINDEX . '</a>';
// or: $phpBB->phpBB['phpbb_url'] . FILENAME_BB_INDEX
// or: str_replace(str_replace(DIR_WS_CATALOG, '', DIR_FS_CATALOG), '', DIR_WS_PHPBB)
  }
  $information[] = '<a href="' . zen_href_link(FILENAME_SHIPPING) . '" rel="nofollow">' . BOX_INFORMATION_SHIPPING . '</a>';
  $information[] = '<a href="' . zen_href_link(FILENAME_PRIVACY) . '" rel="nofollow">' . BOX_INFORMATION_PRIVACY . '</a>';
  $information[] = '<a href="' . zen_href_link(FILENAME_CONDITIONS) . '" rel="nofollow">' . BOX_INFORMATION_CONDITIONS . '</a>';  
  // only show GV FAQ when installed
  $information[] = '<a href="' . zen_href_link(FILENAME_GV_FAQ) . '" rel="nofollow">' . BOX_INFORMATION_GV . '</a>';
  // only show Discount Coupon FAQ when installed
//  $information[] = '<a href="' . zen_href_link(FILENAME_DISCOUNT_COUPON) . '">' . BOX_INFORMATION_DISCOUNT_COUPONS . '</a>';

  $information[] = '<a href="' . zen_href_link(FILENAME_UNSUBSCRIBE) . '" rel="nofollow">' . BOX_INFORMATION_UNSUBSCRIBE . '</a>';
  
  $content = '';
  $content .= '<div id="footer_information" class="sideBoxContent">';
  $content .= '<div>Customer Service</div>';
  $content .= "\n" . '<ul style="margin: 0; padding: 0;">' . "\n";
  for ($i=0; $i<sizeof($information); $i++) {
    $content .= '<li>' . $information[$i] . '</li>' . "\n";
  }
  $content .= '</ul>' .  "\n";
  $content .= '</div>';
    
  echo $content;
 ?>
